

import logging
from flask import Flask
from flask_cors import CORS
from flask_blueprint.rfid_tool_box_info_blueprint import rfid_tool_box_blueprint
from flask_blueprint.rfid_tool_box_lend_blueprint import rfid_tool_box_lend_blueprint




app = Flask(__name__)

app.logger.setLevel(logging.DEBUG)

app.register_blueprint(rfid_tool_box_blueprint)
app.register_blueprint(rfid_tool_box_lend_blueprint)

CORS(app)


if __name__ == '__main__':
    
    app.run(debug=True)
    
    # /root/python3env/venv/bin/gunicorn -w 4 -b 127.0.0.1:8000 main:app

# GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO bnxd;
# GRANT ALL PRIVILEGES ON ALL SEQUENCES IN SCHEMA public TO bnxd;



